<template>
  <div class="pageWrapper">
    <common-header />
    <div class="user-info">
      <div class="user">张三</div>
      <div class="content">
        <div class="name-wrap">
          <div class="name">张三</div>
          <div class="time">2022年第3季度</div>
        </div>
        <div class="info">考核单位：温州市xxx单位 - 售后部</div>
        <div class="info">隶属单位：温州市xxx单位温州市xxx单位</div>
      </div>
    </div>

    <div class="card">
      <div class="title">评定等次</div>
      <div class="flex-wrap">
        <div class="label">评定等次</div>
        <div class="status">优秀</div>
      </div>
      <div class="flex-wrap">
        <div class="label">评语</div>
        <div class="comment">本季度工作表现不错xxxxxxxxxx</div>
      </div>
    </div>

    <div class="card">
      <div class="title">
        <div>考核体系得分</div>

        <div>
          <span>总分：90 分</span>
          <span>单位排名：3</span>
        </div>
      </div>
      <div class="table">
        <div class="tr">
          <div class="th">德</div>
          <div class="th">能</div>
          <div class="th">勤</div>
          <div class="th">绩</div>
          <div class="th">廉</div>
        </div>
        <div class="tr">
          <div class="td">18</div>
          <div class="td">19</div>
          <div class="td">10</div>
          <div class="td">20</div>
          <div class="td">33</div>
        </div>
      </div>
    </div>

    <div class="card">
      <div class="title">
        周期评议
      </div>
      <div class="flex-wrap" style="align-items:center">
        <div class="label">综合评分</div>
        <div class="score">
          <span class="num">98</span>
          <span>分</span>
        </div>
      </div>
    </div>

    <div class="card" style="padding-bottom:4px">
      <div class="title">工作记实</div>
      <div class="report-list">
        <div class="list-item" v-for="item in 3" :key="item">
          <img class="icon" src="@/assets/common/text-icon.png" />
          <div class="content">
            <div class="title">2022年9月记实</div>
            <div class="total">共5条工作内容</div>
          </div>
          <img class="arrow" src="@/assets/common/arrow-right-blue.png" />
        </div>
      </div>
    </div>

    <div class="card">
      <div class="title">
        定性/加减分情况
      </div>
      <div class="border">
        <div class="note">
          公务员在承担急难险重任务、处理复杂问题、应对重大考验时，表现突出、有显著成绩和贡献的，当期平时考核结果可以直接确定为好等次，并及时给予奖励。
        </div>
        <div class="score-wrap">
          <div class="label">政治品质</div>
          <div class="value">优秀</div>
        </div>
      </div>
      <div>
        <div class="note">
          涉嫌违纪违法被立案调查尚未结案的
        </div>
        <div class="score-wrap">
          <div class="label">纪律作风</div>
          <div class="value">-3分</div>
        </div>
      </div>
    </div>

    <div class="card">
      <div class="title">考勤情况</div>
      <detail-table />
    </div>

    <div class="card">
      <div class="title">学习情况</div>
      <detail-table />
    </div>

    <div class="card">
      <div class="title">工作指标</div>
      <detail-table />
    </div>
  </div>
</template>

<script>
import detailTable from "../appraisalResults/components/detail-table.vue";
export default {
  components: {
    detailTable
  },
  methods:{
  }
};
</script>

<style scoped lang="scss">
.pageWrapper {
  padding-bottom: 8px;
}
.flex-wrap {
  display: flex;
  align-items: flex-start;
  margin-top: 12px;
  line-height: 20px;
  font-size: 14px;
}
.user-info {
  display: flex;
  background: #fff;
  margin: 20px 16px 12px;
  border-radius: 8px;
  padding: 16px;
  .user {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    background: #2492ff;
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
  }
  .content {
    flex: 1;
    line-height: 17px;
    color: #a3a7ad;
    .name-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      .name {
        font-size: 16px;
        line-height: 22px;
        color: #333;
      }
      .time {
        color: #606266;
      }
    }
    .info {
      margin-top: 6px;
    }
  }
}
.card {
  background: #fff;
  margin: 12px 16px;
  border-radius: 8px;
  padding: 16px;
  .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    span {
      margin-left: 12px;
      color: #f60e36;
      font-size: 12px;
    }
  }
  .label {
    color: #808080;
    margin-right: 12px;
  }
  .status {
    color: #f60e36;
  }
  .comment {
    flex: 1;
    color: #4d4d4d;
  }
  .table {
    margin-top: 12px;
    width: 100%;
    border: 1px solid #cad2e6;
    .tr {
      display: flex;
      > div {
        flex: 1;
        text-align: center;
        line-height: 34px;
        border-left: 1px solid #ebebeb;
        font-size: 14px;
        color: #4d4d4d;
        &:first-child {
          border-left: none;
        }
      }
      .th {
        border-bottom: 1px solid #ebebeb;
        background: #f5f8fc;
      }
      .td {
        color: #808080;
      }
    }
  }
  .score {
    display: flex;
    align-items: center;
    color: rgba(36, 46, 69, 0.3);
    .num {
      color: #f60e36;
      font-size: 20px;
      font-weight: 600;
      margin-right: 8px;
      margin-bottom: 4px;
      line-height: 20px;
    }
  }
  .report-list {
    .list-item {
      display: flex;
      align-items: center;
      padding: 0 8px;
      border-top: 1px solid #ebebeb;
      &:first-child {
        border-top: none;
      }
      .icon {
        width: 30px;
        margin-right: 12px;
      }
      .arrow {
        height: 12px;
      }
      .content {
        flex: 1;
        .title {
          font-size: 14px;
          color: #4d4d4d;
          margin-bottom: 2px;
          line-height: 20px;
        }
        .total {
          line-height: 17px;
          font-size: 12px;
          color: #b3b3b3;
        }
      }
      height: 62px;
    }
  }
  .border {
    padding-bottom: 12px;
    border-bottom: 1px solid #ebebeb;
  }
  .note {
    margin-top: 12px;
    font-size: 14px;
    line-height: 22px;
    color: #4d4d4d;
    margin-bottom: 6px;
  }
  .score-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
  }
  .value {
    color: #f60e36;
  }
}
</style>
